package com.password.exception;

import com.password.util.ManagerExceptionUtil.Status;

/**
 * 异常信息类
 * 
 * @author yzh
 * @date 2020年5月26日
 *
 */
public class ManagerException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	private String msg;
	private String code;

	public ManagerException(Status status) {
		super(status.getMsg());
		this.msg = status.getMsg();
		this.code = status.getCode();
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
